﻿<%--2694559BFF07F06AA251D92131618ACF131793115441994623--%>
<%@ Page Language="C#" Inherits="XinYeSoft.VIP.WebSite.UnionProjView" %><%@ Import Namespace="XinYeSoft.WebCommonLibrary" %><%
 DirRelVirPath = "~/Templates/Cont/";
this.SubmitFillUsers(); %>
<script runat="server">
protected override void OnLoad(System.EventArgs e)
{
this.DirRelVirPath = "~/Templates/Cont/";
base.OnLoad(e);
}
</script><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<meta name="keywords" content="<%=this.MetaKey%>" />
<meta name="description" content="<%=this.MetaDesc%>" />
<%=this.HeadHtml%>
<title><%=this.PageTitle%></title>
<link rel="shortcut icon" href="<%=this.Root%>/favicon.ico" />
<link rel="stylesheet" href="<%=this.Root%>/Assets/Styles/style.css">

<%
 if (this.PreferredDomain != "") { %>
<link rel="canonical" href="<%=this.PreferredDomain%>" />
<%
 } %>

    <link rel="stylesheet" type="text/css" href="<%=this.Root%>/Assets/Styles/swiper-4.3.3.min.css"/>
	<link rel="stylesheet" type="text/css" href="<%=this.Root%>/Assets/Styles/mydetail.css"/>

	<script src="<%=this.Root%>/Assets/Scripts/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script>
	<script src="<%=this.Root%>/Assets/Scripts/swiper-4.3.3.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" ></script>
</head>

<body>
    
    <%
 if (this.VideoPath != "") { %>
 <div class="video-top">
    <p>点击观看视频</p>
</div>
<div class="video shadow-bg"></div>
<div class="video-box">
    <video width="100%" controls="controls">
    	<source src="<%=this.VideoPath%>" type="video/mp4"></source>
    </video>
</div>
<script type="text/javascript">
    $(function () {
        $('.video.shadow-bg').click(function () {
            $('.video.shadow-bg').hide();
            $('.video-box').hide();
        });
        $('.video-top').click(function () {
            $('.video.shadow-bg').show();
            $('.video-box').fadeIn();
        })
    })
</script>
<%
 } %>

    <div class="declaration-top" style="background: rgb(0,153,204);">
		<div class="con mycon">
			<p><%=this.CurUnion.Remark%></p>
		</div>
		<div class="data">
			<div class="img">
				<img src="<%=this.GetAvatarSrc(this.CurUnionUserID)%>"/>
			</div>
			<div class="info">
				<p><%=this.CurUnion.UserName%></p>
				<p>联合发起于<%=this.ToText(this.CurUnion.BillTime)%></p>
			</div>
		</div>
	</div>

    <%
 if (this.CurUnionUserID == this.CurUserID) { %>
    <form action="" method="post">
    <!--编辑宣言部分-->
	<div class="declaration shadow-bg"></div>
	<div class="declaration box">
		<div class="title clearfix">
			<p class="p1">编辑宣言</p>
			<p class="p2">点击下方编辑您的口号吧</p>
		</div>
		<div class="edit-box">
			<textarea placeholder="请输入宣言" name="tbRemark" rows="" cols=""><%=this.CurUnion.Remark%></textarea>
		</div>
		<div class="color-select clearfix">
            <input class="c1" type="radio" name="slStyleRGB" value="rgb(0,153,204)" <%
 if (this.CurUnion.StyleRGB == "rgb(0,153,204)") { %>checked=""<%
 } %> />
			<input class="c2" type="radio" name="slStyleRGB" value="rgb(51,102,153)" <%
 if (this.CurUnion.StyleRGB == "rgb(51,102,153)") { %>checked=""<%
 } %> />
			<input class="c3" type="radio" name="slStyleRGB" value="rgb(0,150,136)" <%
 if (this.CurUnion.StyleRGB == "rgb(0,150,136)") { %>checked=""<%
 } %> />
			<input class="c4" type="radio" name="slStyleRGB" value="rgb(255,153,0)" <%
 if (this.CurUnion.StyleRGB == "rgb(255,153,0)") { %>checked=""<%
 } %> />
			<input class="c5" type="radio" name="slStyleRGB" value="rgb(153,102,153)" <%
 if (this.CurUnion.StyleRGB == "rgb(153,102,153)") { %>checked=""<%
 } %> />
			<input class="c6" type="radio" name="slStyleRGB" value="rgb(255,153,153)" <%
 if (this.CurUnion.StyleRGB == "rgb(255,153,153)") { %>checked=""<%
 } %> />
			<input class="c7" type="radio" name="slStyleRGB" value="rgb(232,71,63)" <%
 if (this.CurUnion.StyleRGB == "rgb(232,71,63)") { %>checked=""<%
 } %> />
			<input class="c8" type="radio" name="slStyleRGB" value="rgb(153,153,153)" <%
 if (this.CurUnion.StyleRGB == "rgb(153,153,153)") { %>checked=""<%
 } %> />
			<input class="c9" type="radio" name="slStyleRGB" value="rgb(153,153,102)" <%
 if (this.CurUnion.StyleRGB == "rgb(153,153,102)") { %>checked=""<%
 } %> />			
		</div>
		<div class="button clearfix">
			<input class="b1" type="button" value="取消" />
			<input class="b2" type="submit" value="提交" name="btSaveRemark" />
		</div>
	</div>
    </form>
    <script type="text/javascript">
        $(function () {
            $('.declaration.box .color-select input:before').each(function () {
                $(this).click(function () {
                    $(this).parent().attr('checked', 'checked').siblings().removeAttr('checked');
                })
            });
            $('.declaration.box .button .b1').click(function () {
                $('.declaration.shadow-bg').hide();
                $('.declaration.box').slideUp();
            });
            $('.declaration.shadow-bg').click(function () {
                $('.declaration.shadow-bg').hide();
                $('.declaration.box').slideUp();
            })
            $('.declaration-top .con.mycon').click(function () {
                $('.declaration.shadow-bg').show();
                $('.declaration.box').slideDown();
            })
        });
	</script>
	
    <%
 } %>

    <div class="info info01">
		<div class="info-header clearfix">
			<div class="time">
				<p>距离众筹结束<span id="now" class="time-fall"></span><span class="end" id="end"><span class="year"><%=this.CurEndBMYear%></span>
                    <span class="month"><%=this.CurEndBMMonth%></span>
					<span class="day"><%=this.CurEndBMDay%></span>
					<span class="hour"><%=this.CurEndBMHour%></span></span>						
				</p>
			</div>
		</div>
		<div class="info-list clearfix">
			<div class="info-item">
				<p class="info-item-num"><span id="whole-number" class="block"><%=this.CurProject.FeeSum%></span>元</p>
				<p class="info-item-title"><i class="icon-3"></i>目标金额</p>
			</div>
			<div class="info-item info-item-border">
				<p class="info-item-num"><span id="completed-number" class="block"><%=this.CurUnion.EnrollNum%></span>人</p>
				<p class="info-item-title"><i class="icon-4"></i>报名人数</p>
			</div>
			<div class="info-item">
				<p class="info-item-num"><span class="block"><%=this.CurUnion.SupportNum%></span>人</p>
				<p class="info-item-title"><i class="icon-9"></i>支持人数</p>
			</div>
		</div>
	</div>

    <div class="conx clearfix">
		<div class="con-box">
			<p class="p1"><%=this.CurProject.Name%></p>
			<p class="p2"><%=this.CurProject.Remark%></p>
		</div>
		<div class="top-img swiper-container">
			<div class="swiper-wrapper">
			<%
if(this.CurObj.ListPic != null)
{%><%
int i_1=0;
%><%
foreach(XinYeSoft.VIP.BusinessCommon.ProjectPic obj_1 in this.CurObj.ListPic){%> 
                <%
 if (i_1 > 1) { %>
			    <div class="swiper-slide">
				    <img src="<%=this.JoinFullUrl(obj_1.ImagePath)%>"/>
			    </div>
                <%
 } %>
		    <%
i_1+=1;
}
}%>       
			</div>
			<div class="swiper-pagination"></div>
		</div>
	</div>
    <script type="text/javascript">
		$(function() {
			var topImgSwiper = new Swiper('.top-img', {
				loop: true,
				pagination: {
					el: '.swiper-pagination',
				},
				autoplay: {
					delay: 3000,
				},
			});
		})
	</script>
	<script type="text/javascript">
		$(function () {
		    $('.conx').click(function () {
		        $('.detail-con.detail-con01').fadeIn();
		        $('body,html').css('overflow', 'hidden');
		    })
		    $('.detail-con.detail-con01 .close').click(function () {
		        $('.detail-con.detail-con01').fadeOut();
		        $('body,html').css('overflow', 'auto');
		    })
		})
	</script>

    <div class="detail-con detail-con01">
		<div class="nav-box clearfix">
			<p>众筹详情</p>
			<span class="close"></span>
			<!--<div class="nav-list clearfix">
				<div class="nav-item active">详情描述</div>
				<div class="nav-item">报名相关</div>
				<div class="nav-item">参赛标准</div>
			</div>-->
		</div>
		<div class="con-box">
			<div class="con-list">
				<div id="con-item1" class="con-item">
					<%=this.CurContent%>
				</div>
                <%
 if (this.CurProject.DescName1 != "") { %>
				<div id="con-item2" class="con-item">
					<%=this.CurContent1%>
				</div>
				<%
 } %>
				<%
 if (this.CurProject.DescName2 != "") { %>
                <div id="con-item3" class="con-item">
					<%=this.CurContent2%>
				</div>
                <%
 } %>				
			</div>
		</div>
	</div>

    <div class="feedback">
		<div class="nav-box">
			<div class="nav-list clearfix">
                <%
 if (this.ListSBZC.Count > 0) { %>
				<div class="nav-item active">失败 <span><%=this.ListSBZC.Count%></span></div>                
                <%
 } else { %>
                <div class="nav-item active">众筹中 <span><%=this.ListJXZZC.Count%></span></div>
                <%
 } %>
				<div class="nav-item">已筹满 <span><%=this.ListWCZC.Count%></span></div>				
			</div>
		</div>
		<div class="con-box">
			<div class="con-list">
                <div class="con-item con-item02">
			    <%
 if (this.ListJXZorSBZC.Count <= 0) { %>
                    <div class="toEnd">
	                    <p>众筹进行中...</p>
                    </div>
                <%
 } else { %>
                    <%
if(this.ListJXZorSBZC != null)
{%><%
foreach(XinYeSoft.VIP.WebSite.UnionProjView.ZCData obj_1 in this.ListJXZorSBZC){%>
                    <div class="con-item-l">
                        <a href="<%=this.GetFQZCViewUrl(obj_1.FQZC.ID)%>">
						    <div class="top clearfix">
							    <p class="p2"><%=this.ToText(obj_1.FQZC.BillTime)%></p>
							    <div class="p1">
								    <img src="<%=this.GetAvatarSrc(obj_1.FQZC.UserID)%>"/>
								    <p><%=obj_1.FQZC.UserName%></p>
							    </div>
						    </div>                            
						    <div class="con">
							    <p><%=obj_1.FQZC.Remark%></p>
						    </div>
						    <div class="head clearfix">
                                <%
if(obj_1.ListZC != null)
{%><%
foreach(XinYeSoft.VIP.BusinessCommon.MyZCZC zc_2 in obj_1.ListZC){%>
							    <img src="<%=this.GetAvatarSrc(zc_2.UserID)%>"/>
                                <%
}
}%>							    
						    </div>
						    <div class="bottom clearfix">
							    <p class="p1">支持者 <span><%=obj_1.FQZC.SupportNum%></span> 人</p>
							    <p class="p2">已筹 <span><%=this.ToText(obj_1.FQZC.CurSum)%></span> 元</p>
						    </div>
					    </a>
                    </div>
                    <%
}
}%>       
                    <div class="toEnd">
						<p>到底了~</p>
					</div>
                <%
 } %>
                
                <%
 if (this.ListJXZorSBOtherZC.Count > 0) { %> 
                    <div class="lianhe-title">
						<p>其他渠道部分众筹中数据显示</p>
					</div>

                    <%
if(this.ListJXZorSBOtherZC != null)
{%><%
foreach(XinYeSoft.VIP.WebSite.UnionProjView.ZCData obj_1 in this.ListJXZorSBOtherZC){%>
                    <div class="con-item-l">
                        <a href="<%=this.GetFQZCViewUrl(obj_1.FQZC.ID)%>">
						    <div class="top clearfix">
							    <p class="p2"><%=this.ToText(obj_1.FQZC.BillTime)%></p>
							    <div class="p1">
								    <img src="<%=this.GetAvatarSrc(obj_1.FQZC.UserID)%>"/>
								    <p><%=obj_1.FQZC.UserName%></p>
							    </div>
						    </div>                            
						    <div class="con">
							    <p><%=obj_1.FQZC.Remark%></p>
						    </div>
						    <div class="head clearfix">
                                <%
if(obj_1.ListZC != null)
{%><%
foreach(XinYeSoft.VIP.BusinessCommon.MyZCZC zc_2 in obj_1.ListZC){%>
							    <img src="<%=this.GetAvatarSrc(zc_2.UserID)%>"/>
                                <%
}
}%>							    
						    </div>
						    <div class="bottom clearfix">
							    <p class="p1">支持者 <span><%=obj_1.FQZC.SupportNum%></span> 人</p>
							    <p class="p2">已筹 <span><%=this.ToText(obj_1.FQZC.CurSum)%></span> 元</p>
						    </div>
					    </a>
                    </div>
                    <%
}
}%>       
                    <div class="toEnd">
						<p>到底了~</p>
					</div>                    
                <%
 } %>

                
				</div>

                <div class="con-item con-item02">
					<%
if(this.ListWCZC != null)
{%><%
foreach(XinYeSoft.VIP.WebSite.UnionProjView.ZCData obj_1 in this.ListWCZC){%>
                    <div class="con-item-l">
                        <a href="<%=this.GetFQZCViewUrl(obj_1.FQZC.ID)%>">
						    <div class="top clearfix">
							    <p class="p2"><%=this.ToText(obj_1.FQZC.BillTime)%></p>
							    <div class="p1">
								    <img src="<%=this.GetAvatarSrc(obj_1.FQZC.UserID)%>"/>
								    <p><%
%></p>
							    </div>
						    </div>
						    <div class="con">
							    <p><%=obj_1.FQZC.Remark%></p>
						    </div>
						    <div class="head clearfix">
                                <%
if(obj_1.ListZC != null)
{%><%
foreach(XinYeSoft.VIP.BusinessCommon.MyZCZC zc_2 in obj_1.ListZC){%>
							    <img src="<%=this.GetAvatarSrc(zc_2.UserID)%>"/>
                                <%
}
}%>							    
						    </div>
						    <div class="bottom clearfix">
							    <p class="p1">支持者 <span><%=obj_1.FQZC.SupportNum%></span> 人</p>
							    <p class="p2">已筹 <span><%=this.ToText(obj_1.FQZC.CurSum)%></span> 元</p>
						    </div>
					    </a>
                    </div>
                    <%
}
}%> 
                    <div class="toEnd">
					    <p>到底了~</p>
				    </div>

                    <%
 if (this.ListWCOtherZC.Count > 0) { %> 
                    <div class="lianhe-title">
						<p>其他渠道部分已筹满数据显示</p>
					</div>

                    <%
if(this.ListWCOtherZC != null)
{%><%
foreach(XinYeSoft.VIP.WebSite.UnionProjView.ZCData obj_1 in this.ListWCOtherZC){%>
                    <div class="con-item-l">
                        <a href="<%=this.GetFQZCViewUrl(obj_1.FQZC.ID)%>">
						    <div class="top clearfix">
							    <p class="p2"><%=this.ToText(obj_1.FQZC.BillTime)%></p>
							    <div class="p1">
								    <img src="<%=this.GetAvatarSrc(obj_1.FQZC.UserID)%>"/>
								    <p><%=obj_1.FQZC.UserName%></p>
							    </div>
						    </div>                            
						    <div class="con">
							    <p><%=obj_1.FQZC.Remark%></p>
						    </div>
						    <div class="head clearfix">
                                <%
if(obj_1.ListZC != null)
{%><%
foreach(XinYeSoft.VIP.BusinessCommon.MyZCZC zc_2 in obj_1.ListZC){%>
							    <img src="<%=this.GetAvatarSrc(zc_2.UserID)%>"/>
                                <%
}
}%>							    
						    </div>
						    <div class="bottom clearfix">
							    <p class="p1">支持者 <span><%=obj_1.FQZC.SupportNum%></span> 人</p>
							    <p class="p2">已筹 <span><%=this.ToText(obj_1.FQZC.CurSum)%></span> 元</p>
						    </div>
					    </a>
                    </div>
                    <%
}
}%>     

                    <%
 } %>
				</div>
								
			</div>
		</div>
	</div>


    
   <script type="text/javascript">
       $(function () {
           $('.feedback .nav-item').each(function () {
               $(this).click(function () {
                   var i = $(this).index();
                   $(this).addClass('active').siblings().removeClass('active');
                   $('.feedback .con-item').eq(i).show().siblings().hide();
               });
           });
       })
	</script>
		    
    <div class="bottomBack">
	<ul class="u1">
		<li><a href="<%=this.SiteIndexUrl%>">返回首页</a></li>
		<li><a href="#">退出</a></li>
	</ul>
	<div class="box1">
		<p class="p1"><%=this.SiteName%>©2018</p>
		<span class="s1"></span>
		<p>技术支持©易网互联</p>            
	</div>
</div>

    <%
 if (this.IsCurJXZ) { %>
    <div class="bottom-box"></div>
	<div class="payment fixed-bottom">
		<%
 if (this.MyFqZcId > 0) { %>
        <a href="<%=this.GetFQZCViewUrl(this.MyFqZcId)%>">查看我的众筹</a>
        <%
 } else { %>
		<a href="<%=this.GetJoinZCUrl(this.CurProject.ID, this.CurUnionUserID)%>">我要报名众筹</a>
        <%
 } %>        
	</div>	
    <%
 } %>

    

    <script>
        $(function () {
            function timeCount() {
                //当前日期
                var nowTime = new Date();
                //获取截止年月日时
                var endYear = $('#end .year').text();
                var endMonth = $('#end .month').text();
                var endDay = $('#end .day').text();
                var endHour = $('#end .hour').text();
                //截止日期
                var endDate = new Date();
                //设置截止截止年月日时
                endDate.setFullYear(parseInt(endYear));
                endDate.setMonth(parseInt(endMonth) - 1);
                endDate.setDate(parseInt(endDay));
                endDate.setHours(endHour);
                endDate.setMinutes(0);
                endDate.setSeconds(0);

                //总时间间隔
                var intervalTime = (endDate.getTime() - nowTime.getTime()) / 1000;

                if (intervalTime > 0) {
                    var day = parseInt(intervalTime / (24 * 3600));
                    intervalTime = intervalTime % (24 * 3600);
                    var hour = parseInt(intervalTime / 3600);
                    intervalTime = intervalTime % 3600;
                    var minutes = parseInt(intervalTime / 60);
                    var seconds = parseInt(intervalTime % 60);

                    hour = checkTime(hour);
                    minutes = checkTime(minutes);
                    seconds = checkTime(seconds);

                    $('#now').text(day + '天' + hour + ':' + minutes + ':' + seconds);
                } else {
                    clearInterval(t1);
                    $('#now').text('已截止');
                }
            }
            var t1 = setInterval(timeCount, 1000);
            timeCount();
            function checkTime(i) {
                if (i < 10) {
                    i = '0' + i;
                }
                return i;
            }
        });

        var _appId = '<%=this.AppID%>';
        var _timestamp = '<%=this.TimeStamp%>';
        var _nonceStr = '<%=this.NonceStr%>';
        var _signature = '<%=this.Signature%>';
        wx.config({
            debug: false,
            appId: _appId,
            timestamp: _timestamp,
            nonceStr: _nonceStr,
            signature: _signature,
            jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
        });

        wx.ready(function () {
            wx.onMenuShareAppMessage({
                title: '<%=this.ShareTitle%>',
                desc: '<%=this.ShareDesc%>',
                link: '<%=this.CurUrl%>',
                imgUrl: '<%=this.ShareImagePath%>'
            });

            wx.onMenuShareTimeline({
                title: '<%=this.ShareTitle%>',
                link: '<%=this.CurUrl%>',
                imgUrl: '<%=this.ShareImagePath%>'
            });
        });  
    </script>
</body>
</html>